package com.saikei.demoapp.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query

@Dao
interface BookDao {

    @Insert
    fun insert(book: Book):Long

    @Delete
    fun delete(book: Book)

    @Query("Select * From book")
    fun findAll():List<Book>

}